#ifndef _LULY__MUSIC_H_
#define _LULY__MUSIC_H_
#include "PLATFORM.h"
#ifdef _ANDROID_PLATFORM__
#include "SDL_mixer.h"
#else
#include <SDL2/SDL_mixer.h>
#endif


#include <string>
#include <unordered_map>
class _Music {
 private:
  std::unordered_map<std::string, Mix_Music*> music_list;

 private:
  _Music() {}

 public:
  static _Music& getInstance() {
    static _Music instance;
    return instance;
  }

 public:
  void loadMusic(std::string musicId, std::string fileName);
  void playMusic(std::string musicId, bool isLoop);
  ~_Music();
};
#endif